#ifndef TANKWAR_H_INCLUDED
#define TANKWAR_H_INCLUDED

#include <allegro.h>

#define MODE GFX_AUTODETECT_WINDOWED
#define WIDTH 640
#define HEIGHT 460
#define BLOCKS 5
#define BLOCKSIZE 100
#define MAXSPEED 2
#define BULLETSPEED 10
#define TAN makecol(255,242,169)
#define CAMO makecol(64,142,66)
#define BURST makecol(255,189,73)

struct tagTank{
    int x,y;
    int dir,speed;
    int color;
    int score;
} tanks[2];

struct tagBullet{
    int x,y;
    int alive;
    int xspd, yspd;
} bullets[2];

int gameover = 0;

void drawtank(int num);
void erasetank(int num);
void movetank(int num);
void explode(int num, int x, int y);
void updatebullet(int num);
int checkpath(int x1, int y1, int x2, int y2, int x3, int y3);
void clearpath(int num);
void fireweapon(int num);
void forward(int num);
void backward(int num);
void turnleft(int num);
void turnright(int num);
void getinput();
void setuptanks();
void score(int);
void print(const char *s, int c);
void setupdebris();
void setupscreen();
#endif // TANKWAR_H_INCLUDED
